import { CzmESGltfModel, ESCesiumViewer } from 'earthsdk3-cesium';
import { ESFeTreeEditing } from '.';
import { ESJEditingMode } from 'earthsdk3';


export class CzmESFeTreeEditing extends CzmESGltfModel<ESFeTreeEditing> {
    static override readonly type = this.register('ESCesiumViewer',ESFeTreeEditing.type, this);

    // override updateEditing() {
    //     if (this.sceneObject.editing) {
    //         const editingModes: string[] = [];
    //         do {
    //             if (this.editingBindMode == 'singlePoint') {
    //                 editingModes.push(ESJEditingMode.Translation, ESJEditingMode.Rotation);
    //                 break;
    //             }
    //         } while (false);
    //         this.czmViewer.startEditing(this.sceneObject, editingModes);
    //     }
    // }

    constructor(sceneObject: ESFeTreeEditing, czmViewer: ESCesiumViewer) {
        super(sceneObject, czmViewer);
        const viewer = czmViewer.viewer;
        if (!viewer) {
            console.warn(`viewer is undefined!`);
            return;
        }
    }
}